/** Base stylesheet **/

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing:    border-box;
  box-sizing:         border-box;
}

html {
  font-size: 10px;
}

body {
  position: relative;
  font-family: $main-font;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  color: $text-color;
  background-color: $darkBlue;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, a:visited {
  color: $link-color;
  text-decoration: none;
  transition: color $transition-time $transition-easing;

  &:hover, &:focus {
    color: $link-hover;
    text-decoration: none;
  }

  &:active {}

  // mobile tap color
  &:link {
    -webkit-tap-highlight-color : $link-hover;
  }
}

p {
  margin: 0 0 1em;

  -ms-word-break: break-all;
  word-break: keep-all; //non-standart css for webkit
  -ms-word-wrap: normal;
  word-wrap: normal;

  // cleaning up the ragged lines and breaks
  -webkit-hyphens: none;
  -moz-hyphens: none;
  hyphens: none;

  // sets a minimum number of characters before and after the break
  -webkit-hyphenate-before: 2;
  -webkit-hyphenate-after: 3;
  hyphenate-lines: 3;

  // enabling fancy ligatures when available
  -webkit-font-feature-settings: "liga", "dlig";
  -moz-font-feature-settings: "liga=1, dlig=1";
  -ms-font-feature-settings: "liga", "dlig";
  -o-font-feature-settings: "liga", "dlig";
  font-feature-settings: "liga", "dlig";

  &:last-child {
    margin: 0;
  }
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
  text-rendering: optimizelegibility;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 1em;

  a {
    text-decoration: none;
  }
}

h1, .h1 {
  font-size: 3rem;
}

h2, .h2 {
  font-size: 2.8rem;
}

h3, .h3 {
  font-size: 2.4rem;
}

h4, .h4 {
  font-size: 18px;
}

h5, .h5 {
  font-size: 14px;
}

#container {
  //padding: 0 1rem;
  //width: 1440px;
  width: 100%;
  margin: 0 auto;
  //overflow-x: hidden;

  main {
    display: flex;
    flex-direction: row;
  }

  .h-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .content-wrapper {
    width: 100%;
    padding-top: 2px;
    margin-top: 56px;
    .content {
      display: flex;
      flex-direction: row;

      .left-half {
        padding: 35px 23px 35px 34px;
      }

      .right-half {
        width: 45%;
        overflow: visible;
      }
    }

    .dev-content {
      padding: 0 15px 15px;

      h2 {
        margin: 1em 0;
      }
    }
  }

  .blockchain-explorer {
    padding: 0 15px;
    //overflow: scroll;
    //height: 100vh;

    .header {
      background: none;
      border: none;
      height: auto;
      padding: 0 0 15px 0;

      .title {
        margin: 0;
        padding: 0 10px 0 0;
      }
    }
  }

  .overview-container {
    flex-grow: 1;
    padding: 0 15px;

    .header {
      background: none;
      border: none;
      height: auto;
      padding-top: 15px;

      .title {
        //margin: 0;
        padding: 0 10px 0 0;
      }
    }
  }
}

.recharts-tooltip-cursor {
  display: none;
}

.yAxis {
  display: none;
}

.blur {
  -webkit-filter: blur(3px);
  filter: blur(3px);
}

.color-red {
  color: $red;
}

.color-blue {
  color: $blue;
}
.color-green {
  color: $green;
}

.color-teal {
  color: $teal;
}

.active-blue {
  color: $blue;

  &:before {
    color: $blue;
  }
}
.pointer {
  cursor: pointer !important;
}
.CircularProgressbar {
  /*
   * This fixes an issue where the CircularProgressbar svg has
   * 0 width inside a "display: flex" container, and thus not visible.
   *
   * If you're not using "display: flex", you can remove this style.
   */
  width: 30px;
  height: 30px;
}

.search-trigger {
  border-bottom: 1px solid #324156;
}

.CircularProgressbar .CircularProgressbar-path {
  stroke: url(#circleGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease 0s;
}

.CircularProgressbar .CircularProgressbar-trail {
  stroke: rgba(#324156, 0.5);
}

.CircularProgressbar .CircularProgressbar-text {
  display: none;
}

.full-width {
  width: 100%;
}

.full-height {
  height: 100%;
}

.display-flex {
  display: flex;

  &.centered-flex {
    align-items: center;
  }
}

.pos-relative {
  position: relative;
}

.left-padded {
  padding-left: 55px;

  &.semi {
    padding-top: 10px;
    padding-left: 20px;
  }
}

.block-page {
  display: flex;
  flex-direction: row;
  width: 100%;
  position: relative;
  height: 100vh !important;

  .block-list, .block-data {
    display: flex;
    flex-direction: column;
  }

  .block-list {
    height: 100%;
    background-color: #0F1927;
  }

  .block-data, .pending-block-data {
    width: 244px;
    height: 100%;
    background-color: #121d2c;
  }

  .tx-list, .uncle-list, .contract-messages-list {
    background-color: #121d2c;
    overflow: hidden;
    min-width: 250px;
    display: flex;
    flex-direction: column;
  }

  .tx-list, .tx-pending, .contract-messages-list {
    @include tx-container();
  }
}

.solidity {
  padding: 10px;
}

.logo-header-container {
  cursor: pointer;
  display: flex;
  align-items: center;

  .header-padding {
    padding-right: 10px;
    padding-top: 2px;
    font-size: 12px;
    letter-spacing: 0.2px;
  }
}

.logo-header {
  height: 24px;
}

.infinite-loader {
  font-size: 11px;
  line-height: 20px;
  font-family: 'ArialMonospacedMT', monospace;
}

.nodeslist-scrollable {
  flex: 1 0 auto;
  width: 100%;
  min-height: 200px;
}

#container {
  .joyride-beacon {
    height: 20px;
    width: 20px;
    z-index: 1;
  }
}

.tooltip-custom {
  font-size: 12px !important;
  font-weight: 600 !important;
  background-color: #324156 !important;
  line-height: 13px !important;
  letter-spacing: 0.2px !important;
  color: white !important;
  padding: 6px 10px !important;
  word-wrap: break-word !important;
  box-shadow: 0 2px 30px 0 rgba(0,0,0,0.40) !important;
  border-radius: 4px !important;
}

@media only screen and (max-width: 768px) {
  .nodeslist-scrollable > div {
    position: relative !important;
    overflow: hidden !important;
  }
}

// don't delete this plz
.connectNodeInput {
  position: relative;
  background-color: #0F1927;
  border-radius: 8px;
  border: none;
  margin-bottom: 4px;
  color: #8399B8;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  padding: 10px 13px 13px;
  width: 100%;

  &:focus, &:active {
    outline: none;
  }
}

.lastOne {
  margin-bottom: 22px;
}

.connectNodeInput::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: rgba(131, 153, 184, 1) !important;
  opacity: 0.4;
}

.connectNodeInput:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: rgba(131, 153, 184, 1) !important;
  opacity: 0.4;
}

.connectNodeInput::-ms-input-placeholder { /* Microsoft Edge */
  color: rgba(131, 153, 184, 1) !important;
  opacity: 0.4;
}

.connectNodeInputinput:-webkit-autofill {
  border: none;
  -webkit-box-shadow: 0 0 0 30px #0F1927 inset !important;
  -webkit-text-fill-color: #8399B8 !important;
}
